package com.vcs.frm.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vcs.frm.domain.Designation;

public class DesignationRowMapper implements RowMapper<Designation>{

	@Override
	public Designation mapRow(ResultSet rs, int rowNum) throws SQLException {
		Designation d = new Designation();
		d.setDesignationCode(rs.getInt("DESIGNATION_CODE"));
		d.setDesignation(rs.getString("DESIGNATION"));
		return d;
	}

}
